<extend name="layout/main" />

<block name="HEADER">
	<style>
		.iframe{
			width: 100%;
			height: 100%;
		}
	</style>
</block>

<block name="CONTENT">
	<div class="wrapper">
		<!--<iframe class="iframe" src="http://127.0.0.2:20023" frameborder="0"></iframe>--> 
		<iframe class="iframe" src="/decoration/index.html" frameborder="0"></iframe>
		<!--<div class="panel-heading">
			<control:search id="searchs" />
		</div>
		<div class="content" style="padding: 0;">
		
		</div>-->
	</div>
</block>

<block name="FOOTER">
	<php>
		$shop_id = $userInfo['shop_id'] ?: 0;
		$componentsData = getSystem('system_fixtures_json',$shop_id) ?: '[]';
	</php>
	<script type="text/javascript">
		var page = (function(ns){
			
			ns.componentsData = '';
			
		    //页面初始化
		    ns.init=function(){
		    	ns.shop_id = {:$shop_id};
		    	ns.components_data = {:$componentsData};
		    	ns.layerIndex = layer.load(1);
		    	$("iframe").load(function(){ layer.close(ns.layerIndex); });
		    }
		    
		    ns.getComponentsData = function(data){
		    	return ns.components_data || [];
			}
		    
			ns.save = function(data){
				$.ajaxs("/admin/soft/param/saveTextParamValue?shop_id="+ns.shop_id,data)
				.then(function(){
					$.toast(1,"保存成功！");
				});
			}
		
			return ns;
		}({}));
		
		$(function(){ page.init();  });
	</script>
</block>